﻿<%@ Page Title="" Language="C#" MasterPageFile="~/UsersMaster.master" AutoEventWireup="true"
    CodeBehind="ClientTransactions.aspx.cs" Inherits="SMS.Client.ClientTransactions" %>

<asp:Content ID="Content1" ContentPlaceHolderID="UserMainContent" runat="server">
    <div id="search" class="boxed">
        <h2 class="title" dir="rtl">
            <img src="../App_Themes/Theme/images/Search 2.png" class="img" />
            بحث</h2>
        <div dir="rtl" class="content">
            <table>
                <tr>
                    <td>
                        <asp:Label ID="Label1" runat="server" Text="إسم العميل :"></asp:Label>
                    </td>
                    <td align="right">
                        <asp:DropDownList Width="100%" ID="ddlCustomers" runat="server">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label2" runat="server" Text="من :"></asp:Label>
                    </td>
                    <td align="right">
                        <asp:TextBox ID="txtDateFrom" runat="server" />
                        <ajax:CalendarExtender ID="clndrfrom" Animated="true" TargetControlID="txtDateFrom"
                            runat="server">
                        </ajax:CalendarExtender>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label3" runat="server" Text="إلى :"></asp:Label>
                    </td>
                    <td align="right">
                        <asp:TextBox ID="txtDateTo" runat="server" />
                        <ajax:CalendarExtender ID="clndrto" Animated="true" TargetControlID="txtDateTo" runat="server">
                        </ajax:CalendarExtender>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" align="left">
                        <asp:Button CssClass="checkoutbutton" Text="بحث" runat="server" ID="btnSearch" OnClick="btnSearch_Click" Style="height: 26px" />
                    </td>
                </tr>
            </table>
            <table width="100%">
                <tr>
                    <td align="center">
                        <asp:GridView ID="GridView1" DataKeyNames="ID" HeaderStyle-Wrap="true" CssClass="Grid"
                            AllowPaging="true" PagerStyle-CssClass="Pager" PageIndex="0" PagerSettings-Mode="NumericFirstLast"
                            PageSize="3" Width="80%" runat="server" AutoGenerateColumns="False" OnPageIndexChanging="GridView1_PageIndexChanging">
                            <PagerStyle HorizontalAlign="Center" />
                            <Columns>
                                <asp:BoundField HeaderText="#" DataField="ID" />
                                <asp:BoundField HeaderText="دائن" DataField="Credit" />
                                <asp:BoundField HeaderText="مدين" DataField="Debit" />
                                <asp:BoundField HeaderText="التاريخ" DataField="Date" />
                                <asp:BoundField HeaderText="رقم الايصال" DataField="OrderID" />
                                <asp:TemplateField HeaderText="اسم الموظف">
                                    <ItemTemplate>
                                        <%#DataBinder.Eval(Container.DataItem,"User.Name")%>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:CommandField ShowSelectButton="true" HeaderText="تحديث" SelectText="تحديث" />
                                <asp:TemplateField HeaderText="مسح" HeaderStyle-Width="20px">
                                    <ItemTemplate>
                                        <asp:ImageButton ID="ImageButton1" ImageUrl="../App_Themes/Theme/images/Error.png"
                                            Width="15px" Height="15px" CommandName="Delete" runat="server" />
                                    </ItemTemplate>
                                    <ItemStyle HorizontalAlign="Center" Width="20px" />
                                </asp:TemplateField>
                            </Columns>
                            <EmptyDataTemplate>
                                لا يوجد نتائج
                            </EmptyDataTemplate>
                        </asp:GridView>
                    </td>
                </tr>
            </table>
        </div>
    </div>
</asp:Content>
